package com.universal.frame.generalutils;

import android.os.Environment;

public class Constants {

    public final static String URL_REG_EX = "^(http|https|ftp)\\://([a-zA-Z0-9\\.\\-]+(\\:[a-zA-"
            + "Z0-9\\.&%\\$\\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{"
            + "2}|[1-9]{1}[0-9]{1}|[1-9])\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}"
            + "[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|"
            + "[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-"
            + "4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0"
            + "-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\.[a-zA-Z]{2,4})(\\:[0-9]+)?(/"
            + "[^/][a-zA-Z0-9\\.\\,\\?\\'\\\\/\\+&%\\$\\=~_\\-@]*)*$";


    // 手机号正则
    public static final String PHONE_ZZ = "[1][3578]\\d{9}";

    public static final String ACTIVITY_PUTEXTRA_CURRENT_PAGER = "currentPager";

    public static final int PHOTO_REQUEST_CAMERA = 1;// 拍照
    public static final int PHOTO_REQUEST_GALLERY = 2;// 从相册中选择

    // 缓存图片文件夹路径
//    public static final String IMAGE_PATH = "/sdcard/jycd/data/image/";

    // 缓存图片文件夹路径
    public static final String IMAGE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/img";

    //缓存图片基础文件名, 具体文件名为基础文件名+时间戳
    public static final String IMAGE_BASE_NAME = "tmp";

    //缓存图片文件类型
    public static final String IMAGE_BASE_TYPE = ".jpeg";

    public static final String INTENT_ORDER_DETAILS = "intent_order_details";
    /***
     * app文件大小
     */
    public static final String SP_FIELD_APP_FILE_SIZE = "appFileSize";

    public static final String ACTIVITY_PUTEXTRA_APK_URL = "apkUrl";

    public static final String ACTIVITY_PUTEXTRA_APK_VERSION = "versionName";

    public static final String LAUNCHE_SPLASH_FLAG = "Launche_splash_flag";

    /**
     * app总目录
     */
    public static String APP_DIR = Environment.getExternalStorageDirectory().getAbsolutePath();
    //+ File.separator;
    /**
     * 视频缩略图保存路径
     */
    public static String THUMBNAIL_DIR = APP_DIR + "qiyuan/thumbnail/";
    /**
     * 短视频保存路径
     */
    public static String VIDEO_DIR = APP_DIR + "/video";
    /**
     * 语音保存路径
     */
    public static String VOICE_DIR = APP_DIR + "/voice";
    /**
     * 上传的图片压缩保存路径
     */
    public static String PIC_COMPRESS_TEMP = APP_DIR + "jyhw/tempcompress/";
    /**
     * imageLoader缓存的路径
     */
    public static String PATH_IMAGELOADER_CACHE = "jyhw/Cache/";


    /**
     * 更新版本是否出现引导页
     */
    public static final String SP_FIELD_IS_UPDATE_GUIDE = "isUpdateGuide";

    public static final String ARTICLE_ID_FLG = "article_id_flg";
    //是否登录
    public static final String IS_LOGIN = "is_login";
    /**
     * 用户头像
     */
    public static final String USER_PIC = "user_pic";

    /**
     * 用户name
     */
    public static final String USER_NAME = "user_name";

    /**
     * 用户sex
     */
    public static final String USER_SEX = "user_sex";

    /**
     * 用户token
     */
    public static final String USER_TOKEN = "user_token";
    /**
     * 用户role
     */
    public static final String USER_ROLE = "user_role";
    /**
     * 用户id
     */
    public static final String USER_ID = "user_id";
    /**
     * 用户类型
     */
    public static final String USER_TYPE = "user_type";
    /**
     * 用户本月预算
     */
    public static final String USER_MONTH = "user_month";
}
